<body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.addEventListener('DOMContentLoaded', function() {
    if (window.internals) {
        var success = internals.isPreloaded("base-image2.png") && !internals.isPreloaded("bogus/foo.html")
            && !internals.isPreloaded("resources/foo.html");
        console.log(success ? "PASS" : "FAIL");
    }
}, false);
</script>
<base href="resources/foo.html">
This test requires DumpRenderTree to see the log of what resources are loaded.
<script src=resources/non-existant.js></script>
<script>document.write("<plaintext>");</script>
<base href="bogus/foo.html">
<img src="base-image2.png">
